#ifndef __USERDAO_H__
#define __USERDAO_H__

#include <iostream>
#include <string>
#include "userBean.h"

class UserDao
{
private:
    UserDao();
    ~UserDao();
    static UserDao *sInstance;
public:

    static UserDao* getInstance();
    void addUser(userBean mUserBean);
    void getUser(userBean* mUserBean, userBean& retUser);
    bool isUserRegister(string userToken, string &sid);
};
#endif /* __USERDAO_H__ */